export const reducer = (state, action) => {
    switch (action.type) {
        // case "FETCH_POSTS":
        //     return [...state, ...action.payload];
        // case "NEW_POST":
        //     return [action.payload, ...state];
        case "ADD":
            state.count += 1;
            return Object.assign({}, state);
        case "REDUCE":
            state.count -= 1;
            return Object.assign({}, state);
        default:
            return state;
    }
};

// export default reducer;

// export const a = 1;
